package com.gc.cscott.domain;

import com.google.common.base.Preconditions;
import java.io.File;

/**
 *
 * @author root
 */
public class Executable {
    File executableFilePath;
    Platform platform;

    public Executable(File executableFilePath, Platform platform) {
        Preconditions.checkArgument(executableFilePath.isFile());
        this.executableFilePath = executableFilePath;
        this.platform = Preconditions.checkNotNull(platform);
    }

    public File getExecutableFilePath() {
        return executableFilePath;
    }

    public Platform getPlatform() {
        return platform;
    }
}
